﻿package com.ease.platform.usersession.service
{
	import com.obas.flex.common.proxy.DefaultServiceProxy;

	public class UserSessionManagementService extends DefaultServiceProxy
	{
    	private static const SERVICE_NAME:String = "userSessionManagementService";

  		public function UserSessionManagementService() {
     		super(SERVICE_NAME);
  		}

		/**
    */
		public function 
			/* flex: com.ease.platform.usersession.vo.UserSessionContext */ 
			/* java: com.ease.platform.usersession.vo.UserSessionContext */
		login(
 			username:String  /* java.lang.String */,
 			password:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("login", [username, password], callback, context);
 		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		logout(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("logout", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.model.type.IdentityUserSession */ 
			/* java: com.ease.platform.model.type.IdentityUserSession */
		removeUserSessionByUserSessionId(
 			userSessionId:Number  /* long */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("removeUserSessionByUserSessionId", [userSessionId], callback, context);
 		}

		/**
    * @param userContext 
    * @return  
    */
		public function 
			/* flex: com.ease.platform.usercontext.vo.UserContext */ 
			/* java: com.ease.platform.usercontext.vo.UserContext */
		activateUser(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("activateUser", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: void */ 
			/* java: void */
		resetUserContext(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("resetUserContext", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: int */ 
			/* java: int */
		getExpireIntervalMinutes(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getExpireIntervalMinutes", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.model.type.IdentityUser */ 
			/* java: com.ease.platform.model.type.IdentityUser */
		findByContext(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findByContext", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: mx.collections.ArrayCollection */ 
			/* java: java.util.List */
		findMaintenanceLocationsByContext(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("findMaintenanceLocationsByContext", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.usercontext.vo.UserContext */ 
			/* java: com.ease.platform.usercontext.vo.UserContext */
		getAdminUseContext(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getAdminUseContext", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.usercontext.vo.UserContext */ 
			/* java: com.ease.platform.usercontext.vo.UserContext */
		getIntegrationUseContext(
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getIntegrationUseContext", [], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.usercontext.vo.UserContext */ 
			/* java: com.ease.platform.usercontext.vo.UserContext */
		getUserContextByUserName(
 			userName:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getUserContextByUserName", [userName], callback, context);
 		}

		/**
    */
		public function 
			/* flex: com.ease.platform.usercontext.vo.UserContext */ 
			/* java: com.ease.platform.usercontext.vo.UserContext */
		getFromCache(
 			key:String  /* java.lang.String */,
 			callback:Function = null,
 			context:Object = null
 			):void {
    		callService("getFromCache", [key], callback, context);
 		}
	}
}